import { createRouter, createWebHistory } from 'vue-router'
import Login from "../views/login.vue"
import Index from "../views/index.vue"
import Xiao from "../views/xiao.vue"
import Zu from "../views/zu.vue"
import Gou from "../views/gou.vue"
import Lou from "../views/lou/lou.vue"
import Bo from "../views/bo/bo.vue"
import Tuan from "../views/tuan.vue"
import Detail from "../views/detail.vue"
import Kai from "../views/kai.vue"
import Pai from "../views/pai.vue"
import Zhan from "../views/zhan.vue"
import Xin from "../views/xin.vue"
import Esf from "../views/esf.vue"
import Chuz from "../views/chuz.vue"
import SendLou from "../views/lou/sendLou.vue"
import StartBo from "../views/bo/startBo.vue"
import Watch from "../views/bo/watch.vue"
import Mf from "../views/mf.vue"
import Xiangq from "../views/xiangq.vue"
import XinDetail from "../views/XinDetail.vue"
import Tuangou from "../views/tuangou.vue"
import Message from "../views/Message.vue"
import Gao from "../views/gao.vue"
const routes = [
  {
    path: "/",
    redirect: "/login"
  }, {
    path: "/login",
    name: "Login",
    component: Login
  }, {
    path: "/index",
    name: "Index",
    component: Index
  }, {
    path: "/xindetail/:id",
    name: "XinDetail",
    component: XinDetail
  }, {
    path: "/xiao",
    name: "Xiao",
    component: Xiao
  }, {
    path: "/zu",
    name: "Zu",
    component: Zu
  }, {
    path: "/gou",
    name: "Gou",
    component: Gou
  }, {
    path: "/lou",
    name: "Lou",
    component: Lou
  }, {
    path: "/bo",
    name: "Bo",
    component: Bo
  }, {
    path: "/tuan",
    name: "Tuan",
    component: Tuan
  }, {
    path: "/detail/:id",
    name: "Detail",
    component: Detail
  }, {
    path: "/kai/:id",
    name: "Kai",
    component: Kai
  }, {
    path: "/pai",
    name: "Pai",
    component: Pai
  }, {
    path: "/zhan",
    name: "Zhan",
    component: Zhan
  }
  , {
    path: "/xin",
    name: "Xin",
    component: Xin
  }
  , {
    path: "/esf",
    name: "Esf",
    component: Esf
  }, {
    path: "/chuz",
    name: "Chuz",
    component: Chuz
  }, {
    path: "/sendLou",
    name: "SendLou",
    component: SendLou
  }, {
    path: "/startBo",
    name: "StartBo",
    component: StartBo
  }, {
    path: "/mf",
    component: Mf
  }, {
    path: "/xiangq/:id",
    component: Xiangq
  }, {
    path: "/tuangou",
    component: Tuangou
  }, {
    path: "/message",
    component: Message
  }, {
    path: "/watch",
    component: Watch
  },{
    path:"/gao",
    component:Gao
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
